read metric glue.py from local file 
NONE
Sorry, I solve this by call `evaluate.load('glue_metric.py','sst-2')`

2023-06-14T18:04:01Z
https://github.com/huggingface/datasets/issues/5959#issuecomment-1591751779
https://api.github.com/repos/huggingface/datasets/issues/5959
IC_kwDODunzps5e4DRj
https://api.github.com/repos/huggingface/datasets/issues/comments/1591751779/reactions
2023-06-14T18:04:01Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1591751779
https://avatars.githubusercontent.com/u/31148397?v=4
https://api.github.com/users/JiazhaoLi/events{/privacy}
https://api.github.com/users/JiazhaoLi/followers
https://api.github.com/users/JiazhaoLi/following{/other_user}
https://api.github.com/users/JiazhaoLi/gists{/gist_id}
https://github.com/JiazhaoLi
JiazhaoLi
MDQ6VXNlcjMxMTQ4Mzk3
https://api.github.com/users/JiazhaoLi/orgs
https://api.github.com/users/JiazhaoLi/received_events
https://api.github.com/users/JiazhaoLi/repos
https://api.github.com/users/JiazhaoLi/starred{/owner}{/repo}
https://api.github.com/users/JiazhaoLi/subscriptions
User
https://api.github.com/users/JiazhaoLi
public
### Describe the bug

Currently, The server is off-line.  I am using the glue metric from the local file downloaded from the hub. 
I download / cached datasets using `load_dataset('glue','sst2', cache_dir='/xxx')` to cache them and then in the off-line mode, I use `load_dataset('xxx/glue.py','sst2', cache_dir='/xxx')`. I can successfully reuse cached datasets.

My problem is about the load_metric. 
When I run `load_dataset('xxx/glue_metric.py','sst2',cache_dir='/xxx')` , it returns 

`  File "xx/lib64/python3.9/site-packages/datasets/utils/deprecation_utils.py", line 46, in wrapper
    return deprecated_function(*args, **kwargs)
  File "xx//lib64/python3.9/site-packages/datasets/load.py", line 1392, in load_metric
    metric = metric_cls(
TypeError: 'NoneType' object is not callable`

Thanks in advance for help! 
### Steps to reproduce the bug

N/A

### Expected behavior

N/A

### Environment info

`datasets == 2.12.0`